package org.swim.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.GeneratedValue;
import javax.persistence.Table;

@Entity
@Table(name="abilita")
@SequenceGenerator(name="ABILITY_SEQUENCE", sequenceName="AB_SEQ", allocationSize = 1, initialValue=1)
public class Ability implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	@Id
	@Column(name="idAbilita")
	@GeneratedValue(strategy=GenerationType.AUTO, generator="ABILITY_SEQUENCE")
	private int idAbilita;
	
	@Column(name="nome")
	private String nome;
	

	public int getIdAbilita() {
		return idAbilita;
	}
	
	
	public String getNome() {
		return nome;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
	
	
}
